home *** CD-ROM | disk | FTP | other *** search
/ The Very Best of Atari Inside / The Very Best of Atari Inside 1.iso / sharew / packer / zlib / zfeof.c < prev    next >
Encoding:
C/C++ Source or Header  |  1990-11-17  |  384 b   |  26 lines

  1. #include "zdef.h"
  2.  
  3. /*------------------------------*/
  4. /*    zfeof            */
  5. /*------------------------------*/
  6. #ifndef __STDC__
  7. int zfeof (z)
  8. ZFILE *z;
  9. #else
  10. int zfeof (ZFILE *z)
  11. #endif
  12. {
  13.     if ((z->flags & NOT_COMPRESSED) != 0)
  14.     {
  15.         if      (z->c1 != EOF)
  16.         {
  17.                     return ((int) (0 != 0));
  18.         }
  19.         return ((int) feof (z->file));
  20.     }
  21.     return ((int) (z->zeof));
  22. }
  23.  
  24.  
  25.  
  26.